home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / Generic LW (30 sec Alert) / Generic LaserWriter.make < prev    next >
Encoding:
Text File  |  1996-06-15  |  4.0 KB  |  108 lines  |  [TEXT/MPS ]

  1. #
  2. # FILE
  3. #     Generic LaserWriter.make
  4. #
  5. # This is the make file for a generic LaserWriter driver.
  6. #
  7. # © 1991-1996 Apple Computer Inc.
  8. #
  9. #   6/14/96     cn                            Updated to support MPW Pro #19.
  10. #   8/28/94        dmh                            Finalized for SDK.
  11. #  12/18/93        dmh                            Made non-IIg-specific for the b3 seed.
  12. #  09/13/93        dmh                            Updated for the b2 seed.
  13. #  04/26/93        dmh                            Validated for the b1 seed.
  14. #  02/4/93        dmh                            Modified for the a5 seed.
  15. #  10/22/92        Duane Byram            Added changes for version control
  16. #  05/30/91                                        New Today
  17. #
  18.  
  19. #========== Directories Containing Source and Object Files ==========
  20.  
  21. ObjectsDir        =    :Objects:
  22. TargetsDir        = 
  23. SourcesDir        =    
  24.  
  25. #========== File names, etc. ==========
  26.  
  27. ChooserFile        = ChooserSupport
  28. DriverName      = Generic LaserWriter
  29.  
  30. kCreator            = 'scL2'
  31.  
  32. #========== Compiler Options ==========
  33.  
  34. AsmOptions            =        -case obj
  35. RezOptions            =        -i "{RIncludes}" -a
  36. CompileOptions    =        -b2 -d applec -i "{CIncludes}"
  37.  
  38. #======================================
  39.  
  40. "{ObjectsDir}{DriverName}.c.o"        ƒ    "{SourcesDir}{DriverName}.c"                ∂
  41.                                                                         "{SourcesDir}{DriverName}.make"
  42.         SC {CompileOptions} "{SourcesDir}{DriverName}.c" -o "{ObjectsDir}{DriverName}.c.o"
  43.  
  44. "{ObjectsDir}{ChooserFile}.c.o"        ƒ    "{SourcesDir}{ChooserFile}.c"                ∂
  45.                                                                         "{SourcesDir}{DriverName}.make"
  46.         SC {CompileOptions} "{SourcesDir}{ChooserFile}.c" -o "{ObjectsDir}{ChooserFile}.c.o"
  47.     
  48. "{ObjectsDir}{DriverName}.a.o"        ƒ    "{SourcesDir}{DriverName}.a"                ∂
  49.                                                                         "{SourcesDir}{DriverName}.make"
  50.         Asm {AsmOptions} "{SourcesDir}{DriverName}.a" -o "{ObjectsDir}{DriverName}.a.o"
  51.  
  52. "{ObjectsDir}{ChooserFile}.a.o"        ƒ    "{SourcesDir}{ChooserFile}.a"                ∂
  53.                                                                         "{SourcesDir}{DriverName}.make"
  54.         Asm {AsmOptions} "{SourcesDir}{ChooserFile}.a" -o "{ObjectsDir}{ChooserFile}.a.o"
  55.  
  56. "{TargetsDir}{DriverName}"            ƒƒ    "{SourcesDir}{DriverName}.r"                ∂
  57.                                                                         "{SourcesDir}{DriverName}.make"
  58.         Rez {RezOptions}                                                                                                         ∂
  59.                 "{SourcesDir}{DriverName}.r"                                                                        ∂
  60.                 -o "{TargetsDir}{DriverName}"
  61.         SetFile -a Bi "{TargetsDir}{DriverName}"
  62.  
  63. "{TargetsDir}{DriverName}"            ƒƒ    "{SourcesDir}{ChooserFile}.r"                ∂
  64.                                                                         "{SourcesDir}{DriverName}.make"
  65.         Rez {RezOptions}                                                                                                        ∂
  66.                 "{SourcesDir}{ChooserFile}.r"                                                                        ∂
  67.                 -o "{TargetsDir}{DriverName}"
  68.  
  69. "{TargetsDir}{DriverName}"            ƒƒ    "{ObjectsDir}{DriverName}.a.o"            ∂
  70.                                                                         "{ObjectsDir}{DriverName}.c.o"            ∂
  71.                                                                         "{SourcesDir}{DriverName}.make"
  72.     Link        -t 'pdvr'                                                                                                            ∂
  73.                     -c {kCreator}                                                                                                    ∂
  74.                     -ra =resSysHeap,resPurgeable                                                                    ∂
  75.                     -rt pdvr=0                                                                                                        ∂
  76.                     -sg "{DriverName}"                                                                                        ∂
  77.                     -m DriverJumpTable                                                                                        ∂
  78.                     "{ObjectsDir}{DriverName}.a.o"                                                                ∂
  79.                     "{ObjectsDir}{DriverName}.c.o"                                                                ∂
  80.                     "{Libraries}MacRuntime.o"                                                                            ∂
  81.                     -o "{TargetsDir}{DriverName}"
  82.  
  83. "{TargetsDir}{DriverName}"            ƒƒ    "{ObjectsDir}{ChooserFile}.a.o"            ∂
  84.                                                                         "{ObjectsDir}{ChooserFile}.c.o"            ∂
  85.                                                                         "{SourcesDir}{DriverName}.make"
  86.     Link                                                                                                                                     ∂
  87.                     "{ObjectsDir}{ChooserFile}.a.o"                                                                ∂
  88.                     "{ObjectsDir}{ChooserFile}.c.o"                                                                ∂
  89.                     -ra =resSysHeap,resPurgeable                                                                    ∂
  90.                     -rt PACK=-4096                                                                                                ∂
  91.                     -sg PrintingPACK                                                                                            ∂
  92.                     -m EntryPoint                                                                                                    ∂
  93.                     -o "{TargetsDir}{DriverName}"
  94.  
  95. "{TargetsDir}{DriverName}"            ƒƒ    "{ObjectsDir}{ChooserFile}.a.o"            ∂
  96.                                                                         "{ObjectsDir}{ChooserFile}.c.o"            ∂
  97.                                                                         "{SourcesDir}{DriverName}.make"
  98.     Link                                                                                                                                     ∂
  99.                     "{ObjectsDir}{ChooserFile}.c.o"                                                                ∂
  100.                     "{Libraries}Interface.o"                                                                            ∂
  101.                     -ra =resSysHeap,resPurgeable                                                                    ∂
  102.                     -rt LDEF=-4096                                                                                                ∂
  103.                     -sg LDEF                                                                                                            ∂
  104.                     -m LDEF                                                                                                                ∂
  105.                     -w                                                                                                                        ∂
  106.                     -o "{TargetsDir}{DriverName}"
  107.  
  108.